package com.gopay.common.domain.bis;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 银行交互服务-银企直连接口配置信息表
 * 
 * @BisBcdlIntrConfig.java
 * @author yaobo
 * @2013-11-6 上午09:54:11 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_BCDL_INTR_CFG")
public class BisBcdlIntrConfig extends BaseBisBankConfig {

    /**
     * 
     */
    private static final long serialVersionUID = 4550633173776509656L;

    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_BCDL_INTR_CFG_SQ_GENERATOR", sequenceName="BIS_BCDL_INTR_CFG_SEQ")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_BCDL_INTR_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 银行代码
     */
    @Column(name = "BANK_CODE")
    private String bankCode;

    /**
     * 结算账户开户名
     */
    @Column(name = "ACCT_NAME")
    private String acctName;

    /**
     * 结算账户号
     */
    @Column(name = "ACCT_NUM")
    private String acctNum;

    /**
     * 结算账户网点名称
     */
    @Column(name = "BRANCH_NAME")
    private String branchName;

    /**
     * 结算账户网点联行号
     */
    @Column(name = "BRANCH_CODE")
    private String branchCode;

    /**
     * 接口通道代码
     * 
     * 00 - 直连银行 01 - 联动优势 02 - 联通沃 03 - 深圳快付通 04 - 民生银联
     */
    @Column(name = "INTRFACE_CHANNEL_CODE")
    private String chCode;

    /**
     * 接口银行码
     */
    @Column(name = "INTRFACE_BANK_CODE")
    private String intrfaceBankCode;

    /**
     * 是否支持单笔转账
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_SINGLE_TRANSFER", nullable = false, precision = 1, scale = 0)
    private boolean singleTransfer;

    /**
     * 是否支持批量转账
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_BATCH_TRANSFER", nullable = false, precision = 1, scale = 0)
    private boolean batchTransfer;

    /**
     * 是否支持订单查询
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_CHECK_ORDER", nullable = false, precision = 1, scale = 0)
    private boolean checkOrder;

    /**
     * 是否支持对账
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_RECONCILIATION", nullable = false, precision = 1, scale = 0)
    private boolean reconciliation;

    /**
     * 排序优先级
     */
    @Column(name = "PRIORITY_NUM")
    private int priorityNum;
    
    /**
     * 接口一级商户号
     */
    @Column(name = "INTRFACE_1ST_MERNUM")
    protected String intrMernum1;

    /**
     * 接口二级商户号
     */
    @Column(name = "INTRFACE_2ND_MERNUM")
    protected String intrMernum2;
    
    /**
     * 是否可用
     * 
     * 0 - 不可用 1 - 可用
     */
    @Column(name = "AVAILABLE", nullable = false, precision = 2, scale = 1)
    protected boolean available;
    
	public String getIntrMernum1() {
		return intrMernum1;
	}

	public void setIntrMernum1(String intrMernum1) {
		this.intrMernum1 = intrMernum1;
	}

	public String getIntrMernum2() {
		return intrMernum2;
	}

	public void setIntrMernum2(String intrMernum2) {
		this.intrMernum2 = intrMernum2;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getAcctName() {
		return acctName;
	}

	public void setAcctName(String acctName) {
		this.acctName = acctName;
	}

	public String getAcctNum() {
		return acctNum;
	}

	public void setAcctNum(String acctNum) {
		this.acctNum = acctNum;
	}

	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public String getBranchCode() {
		return branchCode;
	}

	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}

	public String getChCode() {
		return chCode;
	}

	public void setChCode(String chCode) {
		this.chCode = chCode;
	}

	public String getIntrfaceBankCode() {
		return intrfaceBankCode;
	}

	public void setIntrfaceBankCode(String intrfaceBankCode) {
		this.intrfaceBankCode = intrfaceBankCode;
	}

	public boolean isSingleTransfer() {
		return singleTransfer;
	}

	public void setSingleTransfer(boolean singleTransfer) {
		this.singleTransfer = singleTransfer;
	}

	public boolean isBatchTransfer() {
		return batchTransfer;
	}

	public void setBatchTransfer(boolean batchTransfer) {
		this.batchTransfer = batchTransfer;
	}

	public boolean isCheckOrder() {
		return checkOrder;
	}

	public void setCheckOrder(boolean checkOrder) {
		this.checkOrder = checkOrder;
	}

	public boolean isReconciliation() {
		return reconciliation;
	}

	public void setReconciliation(boolean reconciliation) {
		this.reconciliation = reconciliation;
	}

	public int getPriorityNum() {
		return priorityNum;
	}

	public void setPriorityNum(int priorityNum) {
		this.priorityNum = priorityNum;
	}

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }
    
    
}
